import { http, toast} from '@/uni_modules/uview-plus'

export const rewardApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/rewardApi', params, config)


export const setShareNumApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/setShareNumApi', params, config)


export const getSaveTipsConfig = (params, config = {custom:{loading:false,catch:true}}) => http.get('/api/getSaveTipsConfig',{...config,...params})

//用户收藏操作
export const activeCollectApi = (params, config = {custom:{loading:false,catch:true}}) => http.post('/api/activeCollectApi',params,config)

//用户收藏列表
export const activeCollectListApi = (params, config = {custom:{loading:false,catch:true}}) => http.post('/api/activeCollectListApi',params,config)

//获取规则玩法说明
export const getRulesInfoApi = (params, config = {custom:{loading:false,catch:true}}) => http.get('/api/getRulesInfoApi',{...config,...params})

//获取首页banner配置
export const getBannerListApi = (params, config = {custom:{loading:false,catch:true}}) => http.get('/api/getBannerListApi',{...config,...params})